package org.example.sort;

public class Maopao {

    public static void main(String[] args) {
        int [] array = new int[]{12,23,11,45,10,3,5,90,34};
        int t = 0 ;
        for(int i =0 ; i< array.length ; i ++ ){
            for(int j = 0 ; j < array.length - i - 1 ; j ++){
                if(array[j] > array[j + 1]){
                    t = array[j];
                    array[j] = array[j+1];
                    array[j+1] = t;
                }
            }
        }
        for(int i : array){
            System.out.print(i + ",");
        }
    }
}
